# ---- create fqueuelib ----
set(FQUEUE_SRCS
        "fqueue.cpp"
        "segment_queue/segment_queue.cpp"
        "segment_queue/mmap_queue/mmap_queue.cpp"
        "segment_queue/mmap_queue/buffer/memory_map_buffer.cpp"
        "segment_queue/mmap_queue/operator/ring_buffer_operator.cpp")

add_library(${PROJECT_NAME} STATIC ${FQUEUE_SRCS})
target_include_directories(
        ${PROJECT_NAME} PUBLIC
        $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
)
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17)
target_link_libraries(${PROJECT_NAME} PRIVATE mmaplib)